def test_malware_detection_on_usb_insertion(usb_monitor):
    usb_monitor.on_device_insertion(malware_file)
    assert usb_monitor.has_detected_malware() == True